// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

/**
 * 新增BenefitActivity
 * @param pram
 */
export function benefitActivityCreateApi(data) {
    console.log(data);
    return request({
        url: 'admin/agent/benefitActivity/save',
        method: 'POST',
        data: data
    })
}

/**
 * benefitactivity更新
 * @param pram
 */
export function benefitActivityUpdateApi(data) {
    return request({
        url: 'admin/agent/benefitActivity/update',
        method: 'POST',
        data: data
    })
}

/**
 * benefitactivity详情
 * @param pram
 */
export function benefitActivityDetailApi(id) {
    return request({
        url: `admin/agent/benefitActivity/info/${id}`,
        method: 'GET'
    })
}

/**
 * benefitactivity删除
 * @param pram
 */
export function benefitActivityDeleteApi(ids) {
    return request({
        url: `admin/agent/benefitActivity/delete`,
        method: 'post',
        data: ids
    })
}


/**
 * benefitactivity列表
 * @param pram
 */
export function benefitactivityListApi(params) {
    return request({
        url: 'admin/agent/benefitActivity/list',
        method: 'GET',
        params
    })
}

